/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jeggtimer;
import java.util.*;
import org.jdesktop.application.FrameView;
/**
 *
 * @author User
 */
public class TickerTask extends TimerTask{
  Ticker mnop;
  JeggtimerView view;
  public void run()
  {
    System.out.println(mnop.secAsStr());
    mnop.decrementSec(view.getResourceMap());
    view.getJTextField1().setText(Integer.toString(mnop.getMin()));
    view.getJTextField2().setText(Integer.toString(mnop.getSec()));
  }
  public void setTicker(Ticker ticker){
        this.mnop=ticker;
  }
  public void setView(JeggtimerView view){
        this.view=view;
  }
}
